--       _________ __                 __                               
--      /   _____//  |_____________ _/  |______     ____  __ __  ______
--      \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
--      /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \ 
--     /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
--             \/                  \/          \//_____/            \/ 
--  ______________________                           ______________________
--			  T H E   W A R   B E G I N S
--	   Stratagus - A free fantasy real time strategy game engine
--      icons.lua - Icons
--
--      (c) Copyright 2005 by Kimmo Merikivi
--
--      This program is free software; you can redistribute it and/or modify
--      it under the terms of the GNU General Public License as published by
--      the Free Software Foundation; either version 2 of the License, or
--      (at your option) any later version.
--
--      This program is distributed in the hope that it will be useful,
--      but WITHOUT ANY WARRANTY; without even the implied warranty of
--      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--      GNU General Public License for more details.
--
--      You should have received a copy of the GNU General Public License
--      along with this program; if not, write to the Free Software
--      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA


--Dwarves
--===================

local unit_icons = {
	{"icon-sub", 0},
	{"icon-transport", 1},
	{"icon-inf", 2},
	{"icon-tank", 3},
	{"icon-battleship", 4},
	{"icon-carrier", 5},
	{"icon-aa", 6},
	{"icon-fighter", 7},
	{"icon-bomber", 8},
	{"icon-ic", 9},	
	{"icon-stone", 10},
	{"icon-tree", 12},
	{"icon-mountain", 13},
}

for i = 1,table.getn(unit_icons) do
	DefineIcon({
		Name = unit_icons[i][1],
		Size = {46, 46},
		File = "icons/icons.png",
		Frame = unit_icons[i][2]})
end






--Commands
--=====================

local command_icons = {
	{"icon-move", 0},
	{"icon-stop", 1},
	{"icon-attack", 2},
	{"icon-stand", 3},
	{"icon-attack-ranged", 4},
	{"icon-cancel", 5},
	{"icon-patrol", 6},
	{"icon-repair", 7},
	{"icon-build-basic", 8},
	{"icon-unload", 9},
	{"icon-harvest", 10},
	{"icon-return-goods", 11},

	-- Really used attack-icons. I don't remove old ones.
	{"icon-attack-with-short-sword", 12},
	{"icon-attack-with-long-sword", 13},
	{"icon-attack-with-two-handed-sword", 14},
	{"icon-attack-with-dagger", 15},
	{"icon-attack-with-two-swords", 16},
	{"icon-attack-with-two-daggers", 17},
	{"icon-attack-with-throwing-dagger", 18},
	{"icon-attack-with-spear", 19},
	{"icon-attack-with-throwing-spear", 20},
	{"icon-attack-with-bow", 21},
	{"icon-attack-with-longbow", 22},
	{"icon-attack-with-crossbow", 23},
	{"icon-attack-with-fist", 24},
	{"icon-attack-with-scimitar", 25},
	{"icon-attack-with-saber", 26},
	{"icon-attack-with-axe", 27},
	{"icon-attack-with-two-haned-axe", 28},
	{"icon-attack-with-hammer", 29},
	{"icon-attack-with-war-hammer", 30},
	{"icon-attack-with-morning-star", 31},
	{"icon-attack-with-mace", 32},
	{"icon-attack-with-maul", 33},
	{"icon-attack-with-club", 34},
	{"icon-attack-with-ballista", 35},
	{"icon-attack-with-catapult", 36},
}

for i = 1,table.getn(command_icons) do
	DefineIcon({
		Name = command_icons[i][1],
		Size = {46, 38},
		File = "icons/commands.png",
		Frame = command_icons[i][2],})
end
